package com.iwinding.ladygg.constant;

/**
 * Created by Administrator on 2016/6/2.
 */
public interface Constant {

    interface SystemInfo{
        String CLIENT_ID = "e71f91de-9f72-4b2d-b0ff-ca0e59d77cee";
        String CLIENT_SECRET = "79e5f346-4492-4d52-979b-d735f91e054e";
        String COOKIE_NAME = "136a3d03-9748-4f83-a54f-9b2a93f979a1";

        String SINA_APPKEY = "3934914442";
    }

    interface TimeConstant{
        long CONNETTIMEOUT =  30000L;//链接超时
        long READTIMEOUT =  10000L;//读取超时
        long LOGINTIMEOUT  = 30*60*1000L;//登录超时
        int VER_COUNTDOWN = 60;//验证码倒计时
    }
    interface NetUrl{
        String TESTHTTP = "http://120.77.22.230:8081/lgg";//测试8123 开发环境8126
        String PROHTTP = TESTHTTP;
//        String PROHTTP = "http://oa.tempus.cn:88/";

        String AUTHORIZE = "/oAuth/authorize"; //code
        String ACCESSTOKEN = "/oAuth/accessToken"; //token
        String RESOURCES = "/oAuth/resources"; //resources

        String CAPTCHA = "/register/captcha"; //captcha
        String REGISTER = "/register"; //register
        String FOREIGN_REGISTER = "/register/foreign"; //foreign_register
        String LOGIN = "/login"; //login
        String THIRDPARTY_LOGIN = "/thirdPartyLogin"; //login
        String BINDINGMOBILE_CAPTCHA= "/bindingMobile/captcha"; //captcha
        String BINDINGMOBILE= "/bindingMobile"; //captcha
        String FINDPWD_CAPTCHA= "/findPwd/captcha"; //captcha
        String FINDPWD= "/findPwd"; //findPwd
        String FINDPWD_RESET= "/findPwd/reset"; //findPwd_reset
        String LOGOUT= "/user/logout"; //logout

        String CONTACTS= "/user/contacts"; //通讯录
        String SEARCH_FRIEND= "/user/searchFriend"; //搜索好友
        String ADD_FRIEND= "/user/addFriend"; //添加好友
        String MYCARD= "/user/myCard"; //我的名片

        String MINE= "/user/mine"; //我
        String PERSONINFO= "/user/personInfo"; //个人信息
        String UPDATE_PERSONINFO= "/user/updatePersonInfo"; //更新个人信息
        String NOTICES= "/user/notices"; //提示人
        String CHANGEPASSWORD= "/user/changePassword"; //修改密码
        String SETNOTICES= "/user/setNotices"; //设置提示人
        String UPLOADHEADIMG= "/user/uploadHeadImg"; //上传头像
        String CHANGEMOBILE_CHECK= "/user/changeMobile/check"; //更换手机校验
        String CHANGEMOBILE_CAPTCHA= "/user/changeMobile/captcha"; //更换手机获取验证码
        String CHANGEMOBILE= "/user/changeMobile"; //更换手机
        String SOSRECORD= "/user/sosRecord"; //Sos记录

        String SENDSOS= "/public/sendSos"; //发送SOS信息
        String PUSHSOS= "/public/pushSos"; //推送SOS信息
        String SOSDETAIL= "/public/sosDetail"; //SOS詳情
        String DEALSOS= "/public/dealSOS"; //处理SOS
        String CANCELSOS= "/public/cancelSOS"; //取消SOS
        String NONOTICE= "/public/noNotice"; //不再关注


    }

    interface Mobile{

        //旧表达式
//        /**
//         * 手机号码
//         * 移动：134,135,136,137,138,139,147,150,151,152,157,158,159,170,178,182,183,184,187,188
//         * 联通：130,131,132,145,152,155,156,1709,171,176,185,186
//         * 电信：133,134,153,1700,177,180,181,189
//         */
//        String MOBILE = "^1(3[0-9]|4[57]|5[0-35-9]|7[01678]|8[0-9])\\d{8}$";
//        /**
//         * 中国移动：China Mobile
//         * 134,135,136,137,138,139,147,150,151,152,157,158,159,170,178,182,183,184,187,188
//         */
//        String CM = "^1(3[4-9]|4[7]|5[0-27-9]|7[0]|7[8]|8[2-478])\\d{8}$";
//        /**
//         * 中国联通：China Unicom
//         * 130,131,132,145,152,155,156,1709,171,176,185,186
//         */
//        String CU = "^1(3[0-2]|4[5]|5[56]|709|7[1]|7[6]|8[56])\\d{8}$";
//        /**
//         * 中国电信：China Telecom
//         * 133,134,153,1700,177,180,181,189
//         */
//        String CT = "^1(3[34]|53|77|700|8[019])\\d{8}$";
//        /**
//         * 大陆地区固话及小灵通
//         * 区号：010,020,021,022,023,024,025,027,028,029
//         * 号码：七位或八位
//         */
//        // String PHS = "^0(10|2[0-5789]|\\d{3})\\d{7,8}$";


        //新表达式
        /**
         * 手机号码:
         * 13[0-9], 14[5,7], 15[0, 1, 2, 3, 5, 6, 7, 8, 9], 17[0, 1, 6, 7, 8], 18[0-9]
         * 移动号段: 134,135,136,137,138,139,147,150,151,152,157,158,159,170,178,182,183,184,187,188
         * 联通号段: 130,131,132,145,152,155,156,170,171,176,185,186
         * 电信号段: 133,134,153,170,177,180,181,189
         */
        String MOBILE = "^1(3[0-9]|4[57]|5[0-35-9]|7[01678]|8[0-9])\\d{8}$";
        /**
         * 中国移动：China Mobile
         * 134,135,136,137,138,139,147,150,151,152,157,158,159,170,178,182,183,184,187,188
         */
        String CM = "^1(3[4-9]|4[7]|5[0-27-9]|7[08]|8[2-478])\\d{8}$";
        /**
         * 中国联通：China Unicom
         * 130,131,132,145,152,155,156,170,171,176,185,186
         */
        String CU = "^1(3[0-2]|4[5]|5[256]|7[016]|8[56])\\d{8}$";
        /**
         * 中国电信：China Telecom
         * 133,134,153,170,177,180,181,189
         */
        String CT = "^1(3[34]|53|7[07]|8[019])\\d{8}$";
    }

//
//    interface CallbackCode{
//        String SUCCESS = "0";
//        String FAIL = "1";
//    }

    interface DBConstant{
       String DBNAME = "OA_DB";
    }

    public static final int CHATTYPE_SINGLE = 1;
    public static final int CHATTYPE_GROUP = 2;
    public static final int CHATTYPE_CHATROOM = 3;

    public static final String EXTRA_CHAT_TYPE = "chatType";
    public static final String EXTRA_USER_ID = "userId";

}
